home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1381 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.9 KB

  1. From: Stephen Usher <Stephen.Usher@earth.ox.ac.uk>
  2. Subject: Re: Deleting owned files...
  3. Date: Wed, 11 May 1994 11:09:10 +0100 (BST)
  4. In-Reply-To: <9405110850.AA13633@issan.informatik.uni-dortmund.de> from "Andreas Schwab" at May 11, 94 10:50:19 am
  5. Mime-Version: 1.0
  6.  
  7. >Michael Smith <miff@apanix.apana.org.au> writes:
  8. >
  9. >|> Greetings :
  10. >|> I'm currently being bitten by the "can't delete lockfile" bug, and it's 
  11. >|> being a bit of a pain - programs that create lockfiles but can't 
  12. >|> delete them.
  13. >
  14. >|> I suspect this is also the reason why tar 1.11.2 (I rebuilt this with the
  15. >|> pl44 mintlibs if anyone is interested) can't set ownership/permissions
  16. >|> on files it extracts sometimes (that's annoying!).
  17. >
  18. >No, this has nothing to do with it.  Only the superuser can change the
  19. >ownership of a file, and you can only change the mode if you own the
  20. >file (or you are effectively root).  I never had problems extracting a
  21. >tarfile if tar is running as root.  Unter SysV, everyone can give away
  22. >files, but that is too risky, and GNU tar will never do that as a
  23. >non-privileged process.
  24.  
  25. Under BSD the symatics are:-
  26.  
  27.     drwxrwxrwx    Anyone can delete, create or rename files.
  28.     drwxr-xr-x    Only owner of directory can do the above.
  29.     drwxrwtrwx    Anyone can create or delete their own files, no-one
  30.             else (other than root) can do so.
  31.     (I think the t is in the right place.. it's the sticky bit anyway.)
  32.  
  33. The important thing is the directory's protection, not the file's, which
  34. determines who can do what to files in the directory, other than for
  35. chown'ing. To chown a file you need to be the owner or root.
  36.  
  37. >Andreas.
  38.  
  39. Steve
  40.  
  41. -- 
  42. ---------------------------------------------------------------------------
  43. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  44. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
  45. Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  46.